<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

    <script>

        // var n  = parseInt(Math.random() * 100) ;
        // 判断是不是0 
        // 计数一次
        // 是就结束，不是就继续抽

        var count = 0 ; 
        for(var i = 0 ; ; i++) {
            var n  = parseInt(Math.random() * 100) ;
            count++ ;
            if(n === 0) {
                break ;
            }
        }

        document.write(count) ;

    </script>

</body>
</html>